package com.example.myapp.event;

import java.util.EventObject;

public class ClickOnCellEvent extends EventObject{

    private int xi, yi;
    private int part;

    public ClickOnCellEvent(Object source) {
        super(source);
    }

    public ClickOnCellEvent(Object source, int[] indexes) {
        this(source);
        this.setXi(indexes[0]);
        this.setYi(indexes[1]);
    }

    public int getXi() {
        return xi;
    }

    public void setXi(int xi) {
        this.xi = xi;
    }

    public int getYi() {
        return yi;
    }

    public void setYi(int yi) {
        this.yi = yi;
    }

    public int getPart() {
        return part;
    }

    public void setPart(int part) {
        this.part = part;
    }
}
